<h2 class="h2">{$lang->cmd_pointsend_log_list}</h2>
<div class="cnb" cond="in_array($act, $logAct)">
	<ul>
		<li class="active"|cond="$act == 'dispPointsendAdminLogList'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispPointsendAdminLogList')}">회원 포인트 선물</a></li>
		<li class="active"|cond="$act == 'dispPointsendAdminBatchLogList'"><a href="{getUrl('', 'module', 'admin', 'act', 'dispPointsendAdminBatchLogList')}">일괄 포인트 선물</a></li>
	</ul>
</div>

<div class="table">
	<table cellspacing="0">
		<thead>
			<tr>
				<th>{$lang->no}</th>
				<th>{$lang->sender}</th>
				<th>{$lang->receiver}</th>
				<th>{$lang->title}</th>
				<th>{$lang->content}</th>
				<th>{$lang->point}</th>
			</tr>
		</thead>
		<tbody>
			<!--@if(count($log_list))-->
			{@ $oMemberModel = &getModel('member')}
			<!--@foreach($log_list as $no => $val)-->
			{@ $sender = $oMemberModel->getMemberInfoByMemberSrl($val->sender_srl)}
			{@ $_receivers = explode(',', $val->target_srls)}
			<tr>
				<td>{$no}</td>
				<td><div class="member_{$sender->member_srl}">{$sender->nick_name}</div></td>
				<td>
					<!--@foreach($_receivers as $k => $v)-->
						<!--@if($val->target == 'group')-->
						{@
							$group_info = $oMemberModel->getGroup($v);
							$receivers[] = $group_info->title;
							$receiver_target = Context::getLang('group');
						}
						<!--@elseif($val->target == 'member')-->
						{@
							$receiver = $oMemberModel->getMemberInfoByMemberSrl($v);
							$receivers[] = $receiver->nick_name;
							$receiver_target = Context::getLang('member');
						}
						<!--@end-->
					<!--@end-->
					{implode(',', $receivers)} ({$receiver_target})
				</td>
				<td>{htmlspecialchars($val->title)}</td>
				<td>{$val->comment}</td>
				<td>{$val->point}</td>
			</tr>
			<!--@end-->
			<!--@else-->
			<tr>
				<td colspan="7">{$lang->msg_not_exists_pointgift_log}</td>
			</tr>
			<!--@end-->
		</tbody>
	</table>
</div>

<div class="search">
	<form action="./" method="get" class="pagination">
		<input type="hidden" name="module" value="admin" />
		<input type="hidden" name="act" value="dispPointsendAdminLogList" />
		<a href="{getUrl('page','')}" class="direction">« {$lang->first_page}</a> 
		<!--@while($page_no = $page_navigation->getNextPage())-->
			<!--@if($page == $page_no)-->
				<strong>{$page_no}</strong> 
			<!--@else-->
				<a href="{getUrl('page',$page_no)}">{$page_no}</a> 
			<!--@end-->
		<!--@end-->
		<a href="{getUrl('page',$page_navigation->last_page)}" class="direction">{$lang->last_page} »</a>
	</form>
	<form action="./" method="get" class="adminSearch">
		<input type="hidden" name="module" value="admin" />
		<input type="hidden" name="act" value="dispPointsendAdminLogList" />
		<select name="search_target">
			<option value="">{$lang->search_target}</option>
			<option value="nick_name" selected="selected"|cond="$search_target == 'nick_name'">{$lang->receiver} ({$lang->nick_name})</option>
			<option value="user_id" selected="selected"|cond="$search_target == 'user_id'">{$lang->receiver} ({$lang->user_id})</option>
			<option value="point_more" selected="selected"|cond="$search_target == 'point_more'">{$lang->point} (이상)</option>
			<option value="point_less" selected="selected"|cond="$search_target == 'point_less'">{$lang->point} (이하)</option>
			<option value="regdate_more" selected="selected"|cond="$search_target == 'regdate_more'">{$lang->date} (이상)</option>
			<option value="regdate_less" selected="selected"|cond="$search_target == 'regdate_less'">{$lang->date} (이하)</option>
			<option value="ipaddress" selected="selected"|cond="$search_target == 'ipaddress'">{$lang->ipaddress}</option>
		</select> 
		<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" /> <input type="submit" value="{$lang->cmd_search}" /> <a href="{getUrl('act', 'dispPointsendAdminLogList', 'search_target', '', 'search_keyword', '')}">{$lang->cmd_cancle}</a>
	</form>
</div>